
<?

	if(isset($records)) 
	{
		foreach($records as $row)
		{	?>

			<p class="rubrik" ><b>
				<div style="float:right;">
					<div>
						<span class="rubrik" style="float:right;width:30px;margin:0px 10px 0px 0px;text-align:right;"> <? echo $row->progress; ?>%</span>
						<div style="float:right;border:solid 1px black;width:100px;margin:4px 20px 0px 0px;">
							<div style="background:red;height:10px;width:<? echo $row->progress; ?>px">
							</div>
						</div>
					</div>
					
				</div>
					<p class="rubrik">
						<? echo $row->id; ?>
						<a class="ink" href="<?echo base_url();?>crud_todo/read/<? echo $row->id; ?>">
							 <? echo $row->titel; ?> (<? echo $row->prioritet; ?>)
						</a>
					</p>
			</b>
				<!--span class="ink">
					<? echo $row->beskrivelse; ?>
				</span-->
			</p>


			<?/*echo "<div style='float:right;'>".$row->progress."% done</p><div style='border:solid 1px black;width:100px;'><div style='background:red;height:10px;width:".$row->progress."px'></div></div></div>";
			echo "<p class='rubrik'><b>".$row->titel."</b></p>";
			echo "<p style='float:right;'>";
			echo "<p>".$row->beskrivelse."</p>";
			echo anchor("crud_todo/delete/$row->id",'Slet');
			echo br(2); */ 
		}
	}

	else { echo "lalala";}

	


?>

